package com.atguigu.tingshu.album.mapper;

import com.atguigu.tingshu.model.album.AlbumInfo;
import com.atguigu.tingshu.model.album.BaseAttribute;
import com.atguigu.tingshu.query.album.AlbumInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumListVo;
import com.atguigu.tingshu.vo.album.AlbumStatVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AlbumInfoMapper extends BaseMapper<AlbumInfo> {

	List<BaseAttribute> findAttributeByCategoryId(Long category1Id);

	IPage<AlbumListVo> findUserAlbumPage(IPage<AlbumListVo> iPage,@Param("vo") AlbumInfoQuery albumInfoQuery);

	AlbumStatVo getAlbumStatByAlbumId(Long albumId);
}
